package com.tsunami.authority.dto.auth;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @Classname ApplicationSaveDTO
 * @Description TODO
 * @Date 2022-03-11 18:31
 * @Created by lx
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ApplicationSaveDTO", description = "应用")
public class ApplicationSaveDTO implements Serializable {
    /**
     * 应用名称
     */
    @ApiModelProperty(value = "应用名称")
    @NotEmpty(message = "应用名称不能为空")
    @Length(max = 30, message = "应用名称长度不能超过30")
    private String name;
    /**
     * 应用编码
     */
    @ApiModelProperty(value = "应用编码")
    @Length(max = 20, message = "应用编码长度不能超过20")
    private String code;
    /**
     * 应用描述
     */
    @ApiModelProperty(value = "应用描述")
    @Length(max = 100, message = "应用描述长度不能超过100")
    private String describe;
}
